package org.jeecg.modules.wlhy.bill.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_customer_bill
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
@Data
@TableName("hy_customer_bill")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_customer_bill对象", description="hy_customer_bill")
public class HyCustomerBill implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "billId")
    private String billId;
	/**流水号*/
	@Excel(name = "流水号", width = 15)
    @ApiModelProperty(value = "流水号")
    private String billNum;
	/**单据类型(1支付运费)*/
	@Excel(name = "单据类型", width = 15,dicCode = "customer_bill_type")
    @Dict(dicCode = "customer_bill_type")
    @ApiModelProperty(value = "单据类型(1支付运费2平台垫付3提现  6预付运费7分段预付运费 8支付计划首付9支付计划到付)")
    private String billType;

    @ApiModelProperty(value = "支付源(1农行钱包 2平台垫付3系统钱包4账期)")
    @Dict(dicCode = "pay_source")
    private String paySource;

    @ApiModelProperty(value = "bill_type=2时，记录垫付id")
    private String platformCostId;

	/**货源id*/
	@Excel(name = "货源", width = 15, dictTable = "hy_order", dicText = "order_num", dicCode = "id")
	@Dict(dictTable = "hy_order", dicText = "order_num", dicCode = "id")
    @ApiModelProperty(value = "货源id")
    private String orderId;
	/**运单id*/
	@Excel(name = "运单", width = 15, dictTable = "hy_shipping_note", dicText = "shipping_note_number", dicCode = "id")
	@Dict(dictTable = "hy_shipping_note", dicText = "shipping_note_number", dicCode = "id")
    @ApiModelProperty(value = "运单id")
    private String shippingId;
	/**货主id*/
	@Excel(name = "货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
	@Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "货主id")
    private String customerId;
	/**公司id*/
	@Excel(name = "公司", width = 15, dictTable = "hy_company", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "公司id")
    private String companyId;
	/**借方账号*/
	@Excel(name = "借方账号", width = 15)
    @ApiModelProperty(value = "借方账号")
    private String dbaccno;
	/**借方多级账簿号*/
	@Excel(name = "借方多级账簿号", width = 15)
    @ApiModelProperty(value = "借方多级账簿号")
    private String dblogaccno;
	/**借方名称*/
	@Excel(name = "借方名称", width = 15)
    @ApiModelProperty(value = "借方名称")
    private String dbaccname;
	/**贷方账号*/
	@Excel(name = "贷方账号", width = 15)
    @ApiModelProperty(value = "贷方账号")
    private String craccno;
	/**贷方多级账簿号*/
	@Excel(name = "贷方多级账簿号", width = 15)
    @ApiModelProperty(value = "贷方多级账簿号")
    private String crlogaccno;
	/**贷方名称*/
	@Excel(name = "贷方名称", width = 15)
    @ApiModelProperty(value = "贷方名称")
    private String craccname;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amt;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
//	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private String delFlag;

    @Excel(name = "运费金额", width = 15)
    @ApiModelProperty(value = "运费金额")
    private BigDecimal costPayShipping;
    /**服务费*/
    @Excel(name = "服务费", width = 15)
    @ApiModelProperty(value = "服务费")
    private BigDecimal costService;

    @ApiModelProperty(value = "支付状态:返回来源")
    private String respSource;

    @ApiModelProperty(value = "支付状态:返回码")
    private String respCode;

    @ApiModelProperty(value = "支付状态:返回信息")
    private String respInfo;

    @ApiModelProperty(value = "支付状态:返回扩展信息")
    private String rxtInfo;

    private String dbProv;
    private String crProv;
    private String bankHdFu;//银行付款电子回单
    private String bankHdShou;//银行收款电子回单

    @Excel(name = "支付渠道", width = 15,dicCode = "pay_channel")
    @ApiModelProperty(value = "支付渠道(1农行支付 5线下支付 6浦发)")
    @Dict(dicCode = "pay_channel")
    private String payChannel;


    @Excel(name = "运费支付完成时间", width = 20,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运费支付完成时间")
    private Date payDt;
    private String frontFlowNo;
}
